package com.opages.cloud.demo.api;

import com.opages.cloud.demo.model.CloudDemoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author daizhong.liu
 * @create 2020-06-07 20:32
 **/
@FeignClient(name="cloud-demo")
@RequestMapping("/cloud/demo")
public interface CloudDemoApi {
    @GetMapping("/get")
    @ResponseBody
    public CloudDemoDto getDemo(Integer id);
}
